<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddModuleFieldConfigInProjectTemplateTable extends AbstractMigration
{
    public function up()
    {
        $this->table('project_template')
            ->addColumn('module_field_config', 'json', ['null' => true, 'comment' => '模块字段验证配置'])
            ->save();
    }

    public function down()
    {
        $this->table('project_template')->removeColumn('module_field_config')->save();
    }
}
